﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/MainPage.master" AutoEventWireup="true" CodeFile="StockInsManage.aspx.cs" Inherits="Manage_StockInsManage" %>
<%@ Import Namespace="Shopping.Common" %>
<%@ Import Namespace="Shopping.Model" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Content" Runat="Server">
<script type="text/javascript" src="/Manage/Js/StockInsManage.js"></script>
<script type="text/javascript" src="/Manage/Public/SelectGoods.js"></script>
<script language="javascript">
    ModelOfStockIn =<%=JSONHelper.ObjectToJson<StockInsInfo>(new StockInsInfo()) %>
    ModelOfLine = <%=JSONHelper.ObjectToJson<StockLineInfo>(new StockLineInfo()) %>;
    SelectOptionOfStores ='<%=SelectOptionOfStores %>';
    SelectOptionOfSupliers ='<%=SelectOptionOfSupliers %>';
    SelectOptionOfStatus ='<%=SelectOptionOfStatus %>';
</script>


<table width="99%" border="0" cellspacing="0" cellpadding="0" class="table" align="center">
  <tr>
    <td align="center"><img src="/Manage/Images/sousuo.gif" />入库单号：
      <input name="txtStockInSnOfSearch" type="text" id="txtStockInSnOfSearch" size="12" class="border6" value="<%=q.StockInSN %>"/>
      库房：
      <select name="ddlStoreOfSearch" id="ddlStoreOfSearch">
        <option value="">--不限--</option>
		<%=SelectOptionOfStores%>
      </select>
      供货商
      ：
      <select name="ddlSupplierOfSearch" id="ddlSupplierOfSearch">
        <option value="">--不限--</option>
		<%=SelectOptionOfSupliers%>
            </select>
      进货日期：
      <input name="txtStartDateOfSearch" type="text" id="txtStartDateOfSearch"    size="12" maxlength="12" readonly="readonly"
                        onfocus="new WdatePicker({el:this})"  class=" Wdate" style="cursor: hand" <%=q.StartDate %>/>
      -
      <input name="txtEndDateOfSearch" type="text" id="txtEndDateOfSearch"  size="12" maxlength="12" readonly="readonly"
                        onfocus="new WdatePicker({el:this})"  class=" Wdate" style="cursor: hand" <%=q.EndDate %>/>

      <input name="btnSearch" type="button" id="btnSearch" value="搜索" class="btn1" onclick="GoToSearch();"/>
      [<a href="StockInsManage.aspx" class="red">查看全部</a>]
      [<a href="javascript:Add();" class="red bold">添加入库单</a>] </td>
  </tr>
</table>
<br />
<table width="99%" border="0" cellspacing="0" cellpadding="0" class="table" align="center"  >
  <tr class="TableHeadRow">
    <td colspan="9" align="left" class="HeadTitle">&gt;&gt;入库管理</td>
    </tr>
  <tr class="TableHeadRow">
    <td width="80" align="center">入库单号</td>
    <td width="80" align="center">入库日期</td>
    <td width="80" align="center">入库数量</td>
    <td width="80" align="center">入库员</td>
    <td align="center">库房</td>
    <td align="center">供货商</td>
    <td width="80" align="center">入库状态</td>
    <td align="center">备注</td>
    <td width="220" align="center">管理 [<a href="javascript:Add();" class="red">添加入库单</a>] </td>
  </tr>

  <%
      if (list != null)
      {
          for (int i = 0; i < list.Count; ++i)
          {
              StockInsInfo d = list[i];
   %>
  <tr>
    <td align="center"><%=d.InsInfo.StockInID %></td>
    <td align="center"><%=d.InsInfo.EnterDate.ToString("yyyy-MM-dd") %></td>
    <td align="center">0</td>
    <td align="center"><%=d.InsInfo.Buyer %></td>
    <td align="center" ><%=d.StoreName %></td>
    <td align="center"><%=d.SupplierName %></td>
    <td align="center"><%=d.InsInfo.Status %></td>
    <td align="center"><%=d.InsInfo.Remark %></td>
    <td align="center">[<a href="PrintStockIn.aspx?StockInID=<%=d.InsInfo.StockInID %>" class="green" target=_blank>查看打印出库单</a>] &nbsp; [<a href="javascript:Edit(<%=d.InsInfo.StockInID %>);">编辑</a>] &nbsp; [<a href="javascript:Delete(<%=d.InsInfo.StockInID %>);" class="red">删除</a>]</td>
  </tr>
    <%} %>
 <tr>
    <td colspan="9" align="center" ><span class="page" >
         <%=Utility.GetPageLine(Utility.GetWebPageUrlNoCurPage(), q.CurPage, q.PageSize,10, q.TotalCount)%>    
        </span></td>
    </tr>
    <%}
      else
      { %>
  <tr>
    <td colspan="9" align="center" class="red">[ 未找到任何出货单信息！]</td>
    </tr>
    <%} %>
</table>

</asp:Content>

